package com.inspinia.base.api.service;

import com.inspinia.base.api.model.InterfaceUserExternal;
import com.inspinia.base.service.BaseService;

import java.util.List;

/**
* 的服务层接口
* Created by pujw on 2017-6-30.
*/
public interface InterfaceUserExternalService extends BaseService<InterfaceUserExternal> {

	/**
    * 批量删除
    * 
    * @param ids id数组
    */
	int batchDelete(Long[] ids);

	/**
	 * 根据用户id,接口id判断是否有权限
	 * @param userId
	 * @param interfaceId
     * @return
     */
	InterfaceUserExternal hasAuthority(Long userId, Long interfaceId);

	/**
	 * 根据用户id查询该用户所有url
	 * @param userId
	 * @return
     */
	List<InterfaceUserExternal> findAddrsByUserId(Long userId);
}